package com.wangmengtao.upms.service.impl;

import com.wangmengtao.upms.dao.UpmsRoleDao;
import com.wangmengtao.upms.model.UpmsRole;
import com.wangmengtao.upms.service.UpmsRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName: UpmsRoleServiceImpl
 * @Description: TODO
 * @Author: WangMengtao
 * @Data: 2019/6/5 17:15
 * @Version: 1.0.0
 */
@Service
public class UpmsRoleServiceImpl implements UpmsRoleService {

    @Autowired
    private UpmsRoleDao upmsRoleDao;

    @Override
    public int insert(UpmsRole upmsRole) {
        return 0;
    }

    @Override
    public int deleteById(Long id) {
        return 0;
    }

    @Override
    public int update(UpmsRole upmsRole) {
        return upmsRoleDao.update(upmsRole);
    }

    @Override
    public int deleteByIds(List<Long> ids) {
        return 0;
    }

    @Override
    public UpmsRole getById(Long id) {
        return upmsRoleDao.getById(id);
    }

    @Override
    public List<UpmsRole> list() {
        return upmsRoleDao.list();
    }
}
